<template>
	<view class="content">
		<!-- <userInfo :user='user' /> -->
		<house :isThis='id' :listId='listId' :ui='ui' v-if="id==1" :pid='pid' :flag='flag' />
		<guarantee :isThis='id' :ui='ui' v-if="id==2" :listId='listId' :pid='pid' :flag='flag' />
		<interest :isThis='id' :ui='ui' v-if="id==3" :listId='listId' :pid='pid' :flag='flag' />
		<wages :isThis='id' :ui='ui' v-if="id==4" :listId='listId' :pid='pid' :flag='flag' />
		<accumulation :isThis='id' :ui='ui' v-if="id==5" :listId='listId' :pid='pid' :flag='flag' />
		<enterpriseDiscountInterest :isThis='id' :ui='ui' :listId='listId' v-if="id==6" :pid='pid' :flag='flag' />
    <car :isThis='id' :listId='listId' :ui='ui' v-if="id==7" :pid='pid' :flag='flag' />
		<officeBuilding :isThis='id' :listId='listId' :ui='ui' v-if="id==8" :pid='pid' :flag='flag' />
		<officeBuildingTwo :isThis='id' :listId='listId' :ui='ui' v-if="id==9" :pid='pid' :flag='flag' />
		<CommercialBuildingMortgage :isThis='id' :listId='listId' :ui='ui' v-if="id==10" :pid='pid' :flag='flag' />
		<tax :isThis='id' :ui='ui' v-if="id==11" :listId='listId' :pid='pid' :flag='flag' />
		<microEnterprises :isThis='id' :ui='ui' :listId='listId' v-if="id==12" :pid='pid' :flag='flag' />
		<card :isThis='id' :ui='ui' v-if="id==13" :listId='listId' :pid='pid' :flag='flag' />
		<mortgagingHousing :isThis='id' :listId='listId' :ui='ui' v-if="id==14" :pid='pid' :flag='flag'/>
		<residentialMortgage :isThis='id' :listId='listId' :ui='ui' v-if="id==15" :pid='pid' :flag='flag' />
		<residentialMortgageTwo :isThis='id' :listId='listId' :ui='ui' v-if="id==16" :pid='pid' :flag='flag' />
	</view>
</template>

<script>
	import userInfo from "../../components/userInfo/userInfo.vue"
	import car from "../../components/informtionList/car.vue"
	import house from "../../components/informtionList/house.vue"
	import guarantee from "../../components/informtionList/guarantee.vue"
	import interest from "../../components/informtionList/interest.vue"
	import wages from "../../components/informtionList/wages.vue"
	import accumulation from "../../components/informtionList/accumulation.vue"
	import enterpriseDiscountInterest from "../../components/informtionList/enterpriseDiscountInterest.vue"
	import officeBuilding from "../../components/informtionList/officeBuilding.vue"
	import officeBuildingTwo from "../../components/informtionList/officeBuildingTwo.vue"
	import CommercialBuildingMortgage from "../../components/informtionList/CommercialBuildingMortgage.vue"
	import tax from "../../components/informtionList/tax.vue"
	import microEnterprises from "../../components/informtionList/microEnterprises.vue"
	import card from "../../components/informtionList/card.vue"
	import mortgagingHousing from "../../components/informtionList/mortgagingHousing.vue"
	import residentialMortgage from "../../components/informtionList/residentialMortgage.vue"
	import residentialMortgageTwo from "../../components/informtionList/residentialMortgageTwo.vue"
	export default {
		components:{
			userInfo,
			car,
			house,
			guarantee,
			interest,
			wages,
			accumulation,
			enterpriseDiscountInterest,
			officeBuilding,
			officeBuildingTwo,
			CommercialBuildingMortgage,
			tax,
			microEnterprises,
			card,
			mortgagingHousing,
			residentialMortgage,
			residentialMortgageTwo
		},
		data() {
			return {
				id:null,
        pid:null,
        productTypeName:null,
        flag:false,
        ui:null,
				listId:null,
				user:uni.getStorageSync('userInfo'),
			};
		},
		onLoad(option) {
			this.id = option.id
      this.pid = option.pid
      this.productTypeName = option.productTypeName
      if (option.flag!=null && option.flag!=undefined && option.flag!='') {
        this.flag = option.flag
      }
      if (option.ui!=null && option.ui!=undefined && option.ui!='') {
        this.ui = option.ui
      }
			this.listId = option.listId
			if(this.id==1){
				uni.setNavigationBarTitle({
					title: this.productTypeName,
				})
			}
			if(this.id==2){
				uni.setNavigationBarTitle({
					title: this.productTypeName,
				})
			}
			if(this.id==3){
				uni.setNavigationBarTitle({
					title: this.productTypeName,
				})
			}
			if(this.id==4){
				uni.setNavigationBarTitle({
					title: this.productTypeName,
				})
			}
			if(this.id==5){
				uni.setNavigationBarTitle({
					title: this.productTypeName,
				})
			}
			if(this.id==6){
				uni.setNavigationBarTitle({
					title: this.productTypeName,
				})
			}
      if(this.id==7){
        uni.setNavigationBarTitle({
          title: this.productTypeName,
        })
      }
			if(this.id==8){
				uni.setNavigationBarTitle({
					title: this.productTypeName,
				})
			}
			if(this.id==9){
				uni.setNavigationBarTitle({
					title: this.productTypeName,
				})
			}
			if(this.id==10){
				uni.setNavigationBarTitle({
					title: this.productTypeName,
				})
			}
			if(this.id==11){
				uni.setNavigationBarTitle({
					title: this.productTypeName,
				})
			}
			if(this.id==12){
				uni.setNavigationBarTitle({
					title: this.productTypeName,
				})
			}
			if(this.id==13){
				uni.setNavigationBarTitle({
					title: this.productTypeName,
				})
			}
			if(this.id==14){
				uni.setNavigationBarTitle({
					title: this.productTypeName,
				})
			}
			if(this.id==15){
				uni.setNavigationBarTitle({
					title: this.productTypeName,
				})
			}
			if(this.id==16){
				uni.setNavigationBarTitle({
					title: this.productTypeName,
				})
			}
		},
		methods:{
			//提交
			toSee(){
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss">
.content{
	min-height: 100vh;
	padding-bottom: 1rpx;
	background-color: #f7f7f7;
}


</style>
